package com.example.demo.repository.two;

import com.example.demo.entity.two.MyDevicePage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Created by pengwan on 2017/6/25.
 */
public interface MyDevicePageRepository extends JpaRepository<MyDevicePage,Integer> {
    List<MyDevicePage> findByDepartmentIdOrderByMyDevicePageSortAsc(int departmentId);
    MyDevicePage findByMyDevicePageSort(int myDevicePageSort);
    MyDevicePage findByMyDevicePageSortAndDepartmentId(int myDevicePageSort,int DepartmentId);

    List<MyDevicePage> findByUnitIDOrderByMyDevicePageID(Integer Id);
}
